﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core;
using System.IO;
using COFE.Core.Lister;

namespace COFE.IO.SZ
{
    public class SevenZipFileStream : VirtualFileStream<SZEntryInfo>
    {
        #region Constructor

        public SevenZipFileStream(IInternalFileInfoExA file, FileMode mode, FileAccess access)
            : base(file, mode, access)
        {
            _updateProc = (item, tempPath) =>
                {
                    item.RootWrapper.compressOne(tempPath, COFEPath.GetDirectoryName(item.RelativePath));                     
                };
        }

        #endregion

        #region Methods

        

        #endregion

    }
}
